import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { InstallmentPage } from './installment.page';

const routes: Routes = [
  {
    path: '',
    component: InstallmentPage
  },
  {
    path: 'payment-schedule',
    loadChildren: () => import('./payment-schedule/payment-schedule.module').then( m => m.PaymentSchedulePageModule)
  },
  {
    path: 'apr-calculate',
    loadChildren: () => import('./apr-calculate/apr-calculate.module').then( m => m.AprCalculatePageModule)
  },
  {
    path: 'successfully',
    loadChildren: () => import('./successfully/successfully.module').then( m => m.SuccessfullyPageModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class InstallmentPageRoutingModule {}
